<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title><?=implode(' :: ', array_reverse(dat('title')))?></title>

<style type="text/css" title="currentStyle" media="all">
	@import url(/style/siteadmin.css);
	@import url(/lib/cal/calendar-system.css);
</style>

<!--[if lt IE 7]>
<style type="text/css" media="screen">
body { behavior: url(/lib/csshover2.htc) } 
img { behavior: url(/lib/pngbehavior.htc) } 
</style>
<![endif]-->

<script src="/lib/head.min.js"></script>

<? include block('tinymce') ?>

<?	if ($b = bits('html-head-include', 'admin')) foreach($b as $bit) { include bit($bit); } ?>

</head>

<body id="page-admin">

<h1><?=t("!project: Site management area", 'html', array('!project' => xmeta('site-name')))?>
	<div id="logout"><form action="" method="post"><input type="submit" name="log_out" value="<?=t('Sign out', 'html')?>" /></form></div>
</h1>

<div class="nav"><ul class="level1"><? include bit('basic/menu/user', 'html', array('menu' => 'admin', 'levels' => 2)) ?></ul></div>

<? $d = dat('crumb'); $name = $d[sizeof($d)-1]['name']; ?>

<h2><?=$name?></h2>
<? foreach($d as $p) {
	if($p['last']) {
		?><?=$p['name']?><?
	} else {
		?><a href="<?=$p['path']?>" title="<?=$p['name']?>"><?=$p['name']?></a> &rarr; <?
	}
} ?>
